home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from gettext import gettext as _
- from checkbox.lib.cache import cache
- from checkbox.plugin import Plugin
-
- class ShellPrompt(Plugin):
-
- def register(self, manager):
- super(ShellPrompt, self).register(manager)
- self._manager.reactor.call_on('prompt-test-shell', self.prompt_test_shell)
-
-
- def _run_shell(self, test):
- result = test.command()
- self._manager.reactor.fire('report-result', result)
-
-
- def prompt_test_shell(self, interface, test):
- if str(test.command):
- interface.show_wait(_('Running shell tests...'), self._run_shell, test)
-
-
- prompt_test_shell = cache(prompt_test_shell)
-
- factory = ShellPrompt
-